package com.test.pattern.iterator;

/**
 * @ClassName: StudentAggregate
 * @description: 抽象聚合角色
 * @author: Mr du
 * @create: 2024-03-17 17:57
 */
public interface StudentAggregate {

    //添加学生功能
    void addStudent(Student student);

    //删除学生功能
    void removeStudent(Student student);

    //获取迭代器对象功能
    StudentIterator getStudentIterator();
}
